package com.chinasofti.framework.dataaccess;

import java.util.ArrayList;

import com.chinasofti.framework.data.Entity;

/**
 * @author yaoyang
 * @param <T extends Entity>
 */
public interface ISynchronizable<T extends Entity> {

	public T synchronize(Object key) throws Exception;

	public T[] synchronize(Object[] key) throws Exception;

	public ArrayList<T> synchronize(ArrayList<T> serverEntities, ArrayList<T> localEntities);

	public T synchronize(T serverEntity, T localEntity) throws Exception;
}
